package com.xywang.dao.provider;

import com.xywang.pojo.Provider;

import java.sql.Connection;
import java.util.List;

public interface ProviderDao {
    //  通过条件返回用户列表
    List<Provider> getProviderListDao(Connection connection, String proCode, String proName) throws Exception;
    // 增加供应商
    int addProDao(Connection connection, Provider provider) throws Exception;
    // 删除供应商
    int deleteProviderById(Connection connection,String delId) throws Exception;
    // 通过proId获取Provider
    Provider getProviderById(Connection connection, String id) throws Exception;
    // 修改供应商
    int modifyDao(Connection connection, Provider provider) throws Exception;
}
